Skip to main content

recordRate

Type

property

Summary

Specifies how often the sound input should be read during sound recording.

Syntax

set the recordRate to <samplesPerSecond>

Description

Use the recordRate property to trade off between sound quality and disk space when you record a sound. The samplesPerSecond is the number of thousands of times per second the sound is sampled. The higher this number, the higher the quality of the resulting sound, and the larger the resulting file. For best sound quality, the higher recordRates should be used when the sound input is of high quality, for example, when recording from a CD and when music is being recorded. (44.1 kHz is "CD-quality" .) In general, you can use lower recordRates for spoken words than for music without compromising sound quality.

The recordRate property determines the sound sampling rate when you use the record sound command to record sound to a file.

The possible recordRates depend on the system's capabilities. The recordRate may not have any effect depending on the codec specified by the recordFormat property.

Examples

set the recordRate to 48 -- sample at 48 kHz

keyword: file

property: recordSampleSize

command: answer record, record sound

glossary: property, command, dialog box

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

ios

android

web

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?